<?
$PATH_TO_ROOT = "..";
include "$PATH_TO_ROOT/config/constants.php";

$_rid = $_GET[_feed];

mysql_connect("localhost", "canss", "1022") or die("ERROR: Could not connect " . mysql_error());
mysql_select_db("rule_db");

$query = "SELECT `namespaces` FROM `rule` WHERE `rid` = '$_rid'";
$result = mysql_query($query);

if( $row = mysql_fetch_row($result) ){
	echo $row[0];
	exit;
}
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
include NMS_DEFAULT_PATH;
?>
